package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserPayReportBeanMapper;
import com.billing.model.entity.TUserPayReport;
import com.billing.service.UserPayReportService;

@Service
public class UserPayReportServiceImpl implements UserPayReportService {

	@Resource
	private UserPayReportBeanMapper userPayReportBeanMapper;
	

	public TUserPayReport getTUserPayReportByid(String id) {
		return userPayReportBeanMapper.getTUserPayReportByid(id);
	}

	public int insertTUserPayReportList(List<TUserPayReport> payreport) {
		return userPayReportBeanMapper.insertTUserPayReportList(payreport);
	}


	public int getTUserPayReportNum(int year, int month, String name,
			String jobnumber,int organizationid) {
		return userPayReportBeanMapper.getTUserPayReportNum(year, month, name, jobnumber,organizationid);
	}

	public List<TUserPayReport> getTUserPayReportList(int year,
			int month, String name, String jobnumber,int organizationid, int currentPage,
			int pageSize) {
		return userPayReportBeanMapper.getTUserPayReportList(year, month, name, jobnumber, organizationid,currentPage, pageSize);
	}

	public int deleteTUserPayReportList(int year, int month) {
		return userPayReportBeanMapper.deleteTUserPayReportList(year, month);
	}

	@Override
	public TUserPayReport getTUserPayReportByUserid(String id,String year,String month) {
		return userPayReportBeanMapper.getTUserPayReportByUserid(id, year, month);
	}

}
